package test.ych.com.test

import org.junit.Before
import org.junit.Test

import org.junit.Assert.*

class CalculatorTest {
    lateinit var calculator: Calculator;
    @Before
    fun setUp() {
        calculator = Calculator()
    }

    @Test
    fun test1() {
        assertEquals(6.0,calculator.sum(2.0,5.0)!!, 0.0)
//        assertEquals(6.0,calculator.sum(1.0,5.0)?:0.0, 0.0)
    }
}